<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnFieMemberRoleInTaskMemberRelationTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task_member_relation')
            ->addColumn('member_role', 'string', ['null' => false, 'default' => '', 'limit' => 20, 'comment' => '成员角色'])
            ->save();
    }

    public function down()
    {
        $this->table('task_member_relation')
            ->removeColumn('member_role')
            ->save();
    }
}
